package com.hamster.crm.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @author Tarry
 * @create 2019/11/27 9:31
 */
@Data
@TableName("tb_user")
public class User {
    @TableId
    private String id;//主键id
    private String phone;//手机号，账号
    private String password;//密码
    private String state;//账号状态
    private String name;//姓名
    private Integer gender;//性别
    private String department;//部门id
    @TableField(exist = false)
    private String deptStr;//部门名称
    private String position;//职位
    @TableField(exist = false)
    private List<Permission> permissionList;//权限列表
    @TableField(exist = false)
    private String roleId;

}
